package com.snake.springboot.custom.api.model.bill;

/***
 *
 */
public class BillEnum {

    public enum BillType {
        /** 账单类型 */
        STRATEGY_PAY("功能购买", "strategy_pay"),
        POINTS_PAY("算力充值", "points_pay");

        private String name;

        private String code;

        BillType(String name, String code) {
            this.name = name;
            this.code = code;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public String getCode() {
            return code;
        }

        public void setCode(String code) {
            this.code = code;
        }
    }

    public enum OrderStatus {
        WAIT(0, "待支付"),
        FINISHED(1, "已完成"),
        RET(2, "已退款"),
        CLOSED(3, "已关闭")
        ;

        /** 订单状态 */
        private Integer code;

        private String name;

        OrderStatus(Integer code, String name) {
            this.code = code;
            this.name = name;
        }

        public Integer getCode() {
            return code;
        }

        public void setCode(Integer code) {
            this.code = code;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }
    }

}
